DESTDIR = /projects/lhy/lantian/3rdparty/plucid/rebuild/bin
CC=gcc
CFLAGS=-s -DYYMAXDEPTH=900 -I.
DEPS = cmanifs.h cglobals.h y.tab.h
OBJ = main.o y.tab.o yylex.o expr.o cglobals.o

clean:
	rm -f *.o y.tab.h y.tab.c pass1

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

pass1: $(OBJ)
	yacc -d flucid.y
	$(CC) -o $@ $^ $(CFLAGS)
	cp pass1 $(DESTDIR)